import javax.faces.component.html.HtmlCommandButton;
import javax.faces.component.html.HtmlInputText;


public class BindingDemo {
	
	private String ad;
	private HtmlCommandButton kaydetButton = new HtmlCommandButton();
	private HtmlInputText adAlani = new HtmlInputText();
	
	public void kaydet(){
		kaydetButton.setReadonly(true);
		getAdAlani().setValue("Adını kaydettim!");
		
		
	}
	public void setAd(String ad) {
		this.ad = ad;
	}
	public String getAd() {
		return ad;
	}
	public void setKaydetButton(HtmlCommandButton kaydetButton) {
		this.kaydetButton = kaydetButton;
	}
	public HtmlCommandButton getKaydetButton() {
		return kaydetButton;
	}
	public void setAdAlani(HtmlInputText adAlani) {
		this.adAlani = adAlani;
	}
	public HtmlInputText getAdAlani() {
		return adAlani;
	}
	

}
